<include file="Common/header" />
<title>水电气费管理</title>
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理
	<span class="c-gray en">&gt;</span> 收费标准设置
	<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
		<i class="Hui-iconfont">&#xe68f;</i>
	</a>
</nav>

<div class="pd-20">
	<div class="codeView docs-example" data-afterContent="收费标准设置">
		<form action="" method="POST" id="addfrom">
			<table class="table table-border table-bordered table-striped">
				<tbody>
					<tr>
						<td align="right" bgcolor="#f1f1f1">电费费率：</td>
						<td>
							<input type="text" name="electric" id="electric" class="input-text radius" value="{$info['electric']}" />
							<span class="usernameabel"></span>
						</td>
						<td align="right" bgcolor="#f1f1f1">水费费率：</td>
						<td>
							<input type="text" name="water" id="water" class="input-text radius" value="{$info['water']}" />
							<span class="passwordabel"></span>
						</td>
						<td align="right" bgcolor="#f1f1f1">气费费率：</td>
						<td>
							<input type="text" name="gas" id="gas" class="input-text radius" value="{$info['gas']}" />
							<span class="nicknameabel"></span>
						</td>
						<td align="right" bgcolor="#f1f1f1">余额预警：</td>
						<td>
							<input type="text" name="point" id="point" class="input-text radius" value="{$info['point']}" />
							<span class="nicknameabel"></span>
						</td>
					</tr>
					
					<tr>
						<td class="text-c" colspan="8">
							<input type="button" value="确定" class="btn btn-success radius roleSubmit" style="width:80px;" />
						</td>
					</tr>
				</tbody>
			</table>
		</form>	
	</div>
</div>
<script>
	$(document).ready(function(){
		$(".roleSubmit").on('click', function(){
			$.post("sets.html", $("#addfrom").serialize(), function(data){
				if(data/1){
					layer.msg('编辑成功', {icon: 1, time: 2000}, function(){
						location.reload();
					});
				}else{
					layer.msg('编辑失败', {icon: 1, time: 2000});
				}
			},'json');
		});
	});
</script>
</body>
</html>